package cn.project.biz;

import cn.project.dao.UserDao;
import cn.project.model.User;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;
import java.util.List;
@Service("userBiz")
public class Userbiz {

    @Resource(name = "userDao")
    private  UserDao userDao;

    public List<User> getAllUser(){
        return userDao.getallUser();
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}
